package org.yzh.web.model.qiniu;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lsj
 * @date 2021/1/18 15:32
 */
@NoArgsConstructor
@Data
public class StreamResp {

    /**
     * items : [{"streamId":"MBLY","nsId":"2xenzw7ge6xuv","nsName":"MBLY","recordTemplateId":"2xenzw7jhreu0","snapshotTemplateId":"","createdAt":1608105987,"updatedAt":1608106289,"status":false,"disabled":false,"lastPushedAt":1610701147,"uid":0,"userCount":0}]
     * total : 1
     */

    private Integer total;

    private List<StreamItem> items;

    @NoArgsConstructor
    @Data
    public static class StreamItem {
        /**
         * streamId : MBLY
         * nsId : 2xenzw7ge6xuv
         * nsName : MBLY
         * recordTemplateId : 2xenzw7jhreu0
         * snapshotTemplateId :
         * createdAt : 1608105987
         * updatedAt : 1608106289
         * status : false
         * disabled : false
         * lastPushedAt : 1610701147
         * uid : 0
         * userCount : 0
         */

        private String streamId;
        private String nsId;
        private String nsName;
        private String recordTemplateId;
        private String snapshotTemplateId;
        private Integer createdAt;
        private Integer updatedAt;
        private Boolean status;
        private Boolean disabled;
        private Integer lastPushedAt;
        private Integer uid;
        private Integer userCount;
    }
}
